package com.example.yichuangyun.model.contacts;

import com.example.yichuangyun.model.contacts.ContactWayModel;

import java.util.ArrayList;
import java.util.List;

public class ContactPersonModel {
    private String userName;
    private List<ContactWayModel> tels;
    private int sex;
    /**
     * 是否默认联系方式：0 否，1 是
     */
    private int isDefault;

    public ContactPersonModel() {
        List<ContactWayModel> contactWay = new ArrayList<>();
        contactWay.add(new ContactWayModel(1));
        this.tels = contactWay;
    }

    public ContactPersonModel(int isDef) {
        List<ContactWayModel> contactWay = new ArrayList<>();
        contactWay.add(new ContactWayModel(1));
        this.tels = contactWay;
        this.isDefault = isDef;
    }

    public ContactPersonModel(String userName, int isDef/*, List<ContactWayModel> contactWay*/) {
        List<ContactWayModel> contactWay = new ArrayList<>();
        contactWay.add(new ContactWayModel(1));
        this.userName = userName;
        this.isDefault = isDef;
        this.tels = contactWay;
    }

    /**
     * 联系人转化商机时使用
     */
    public ContactPersonModel(String userName,int sex, int isDef, List<ContactWayModel> contactWay) {
        this.userName = userName;
        this.isDefault = isDef;
        this.sex = sex;
        this.tels = contactWay;
    }

    public String getName() {
        return userName;
    }

    public void setName(String name) {
        this.userName = name;
    }

    public List<ContactWayModel> getTels() {
        return tels;
    }

    public void setTels(List<ContactWayModel> tels) {
        this.tels = tels;
    }

    public int getSex() {
        return sex;
    }

    public void setSex(int sex) {
        this.sex = sex;
    }


    public int getIsDef() {
        return isDefault;
    }

    public void setIsDef(int isDef) {
        this.isDefault = isDef;
    }
}
